﻿using System.Collections.Generic;
using BO;
using Model;

namespace Controller
{
    /// <summary>
    /// Summary description for VYC0101Controller
    /// </summary>
    public class VYC0101Controller
    {
        private static VYC0101BO _vyc0101Bo;
        public VYC0101Controller()
        {
            //
            _vyc0101Bo = new VYC0101BO();
        }

        public List<ModelVYC0101> GetAllList()
        {
            return _vyc0101Bo.GetAllList();
        }

        public int AddData(ModelVYC0101 model)
        {
            return _vyc0101Bo.AddData(model);
        }

        public int EditData(ModelVYC0101 model)
        {
            return _vyc0101Bo.EditData(model);
        }

        public int DeleteData(ModelVYC0101 model)
        {
            return _vyc0101Bo.DeleteData(model);
        }
        public List<ModelVYC0101> GetByIdTour(string idtour, int trangthai)
        {
            return _vyc0101Bo.GetByIdTour(idtour, trangthai);
        }
    }
}